package com.bw.lib_core.mvvm.model;

import com.bw.lib_core.bean.BaseBean;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;

public interface IModel {

    /**
     * RequestBody Json
     */
    RequestBody createJsonBody(Map<String, Object> values);

    /**
     * 观察者合并
     */
    Observable<BaseBean> observableMerge(Observable<?>... observable);

    /**
     * 观察者转换
     */
    Observable<BaseBean> observableMap(Observable<?> observable);
}
